package com.gdk.service;

import java.util.List;
import java.util.Map;

/**
 * 用户service接口
 * 
 * */
public interface UserService {
	//查询所有用户
	List<Map<String,Object>> selectAllUser(Map<String,Object> map);
	//查询用户详情
	Map<String,Object> selectUserDetails(Map<String,Object> map);
	//修改用户详情
	int updateUserDetails(Map<String,Object> map);
	
	//用户佣金流水
	List<Map<String,Object>> selectCommissionByUser(Map<String,Object> map);
	//用户积分流水
	List<Map<String,Object>> selectIntegralByUser(Map<String,Object> map);
	//新增用户佣金流水
	int addCommissionByUser(Map<String,Object> map);
	//新增用户积分流水
	int addsIntegralByUser(Map<String,Object> map);
	//用户积分流水根据订单 
	List<Map<String,Object>> selectIntegralByOrder(Map<String,Object> map);
	//查询所有认养用户
	List<Map<String,Object>> selectAllUserByRy(Map<String,Object> map);
	//查询所有提现的申请
	List<Map<String,Object>> selectAllApplyTX(Map<String,Object> map);
	//修改代售佣金流水
	int updateUserOrderMoneyDetails(Map<String,Object> map);
	//查询所有佣金提现的申请
	List<Map<String,Object>> selectAllUserCommissionApplyTX(Map<String,Object> map);
	//修改佣金流水
	int updateUserCommissionDetails(Map<String,Object> map);
	//新增用户
	int addUser(Map<String,Object> map);
	//查询用户详情
	List<Map<String,Object>> selectUserDetailsByPhone(Map<String,Object> map);
	//删除用户
	int delUser(Map<String,Object> map);
	
	//重建表
	int truncateUser(Map<String,Object> map);
}
